//
//  NavigaionView.h
//  StudentClient
//
//  Created by 张宁宁 on 16/5/31.
//  Copyright © 2016年 lirenkj. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger,NavigationViewBtn){
    LEFTBTN,
    RIGHTBTN,
};

@protocol NavigationViewDelegate <NSObject>

@optional
-(void)clickNavBtn:(UIButton*)sender;
- (void)clickSearchBtn:(UIButton *)search;
-(void)clickCollectBtn:(UIButton*)sender;
@end


@interface NavigationView : UIView

@property(nonatomic,assign)id<NavigationViewDelegate>navDelegate;

@property(nonatomic,strong)UILabel * titleLable;
@property(nonatomic,strong)UIButton * rbtn;
@property(nonatomic,strong)UIButton * collectionBtn;


-(instancetype)initViewWithTitleName:(NSString*)titlename leftBtnImage:(NSString*)leftimage rithtBtnImage:(NSString*)rightimage;
/*
 * 导航条右边有两个按钮的情况,(搜索、筛选)
 */
-(instancetype)initViewWithTitleName:(NSString*)titlename leftBtnImage:(NSString*)leftimage;

/*
 * 导航条右边有两个按钮的情况,(收藏、分享)
 */

-(instancetype)initCollectionViewWithTitleName:(NSString*)titlename leftBtnImage:(NSString*)leftimage;
/*
 * 导航条右边是文字的情况，（发起项目，下一步，发布）
 */
-(instancetype)initViewWithTitleName:(NSString*)titlename leftBtnImage:(NSString*)leftimage rightBtnTitle:(NSString *)title;


@end
